package com.leyou.order.pojo;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

@Data
public class Order {

    @Id
    private Long orderId;//id
    private Long totalPay;//总金额
    private Long actualPay;//实付金额
    private Integer paymentType;//支付类型，1.在线支付，2.货到付款
    private String promotionIds;//参与促销活动的id
    private Long postFee = 0L;//邮费
    private Date createTime;//创建时间
    private String shippingName;//物流名称
    private String shippingCode;//物流单号
    private Long userId;//用户id
    private String buyerMessage;//买家留言
    private String buyerNick;//买家昵称
    private Boolean buyerRate;//买家是否已经评价
    private String receiver;//收货人全名
    private String receiverMobie;//移动电话
    private String receiverState;//省份
    private String receiverCity;//城市
    private String receiverDistrict;//区/县
    private String receiverAddress;//收货地址
    private String receiverZip;//邮政编码
    private Integer invoiceType;//发票类型
    private Integer sourceType;//订单来源

    @Transient
    private List<OrderDetail> orderDetails;

    @Transient
    private OrderStatus orderStatus;
}
